package enums;

import utils.Utils;
/**
 * 
 * viewing direction
 *
 */
public enum Direction
{
	FRONT , BACK , NONE;

	@Override
	public String toString()
	{

		return Utils.beginWithCapital(name());
	}
	public static Direction Convert( int i ) {
		return values()[i];
	}
	public static Direction flipDirection(Direction dir) {
		if (dir == Direction.NONE) {
			return Direction.NONE;
		}
		return (dir == Direction.BACK) ? Direction.FRONT : Direction.BACK;
	}
}